package com.example.demo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;

/**
 * 
 * @TableName custom_rules
 */
@TableName(value ="custom_rules")
public class CustomRules implements Serializable {
    /**
     * 
     */
    @TableId(type = IdType.AUTO)
    private Object id;

    /**
     * 
     */
    private Object ruleid;

    /**
     * 
     */
    private String rulename;

    /**
     * 
     */
    private String ruletype;

    /**
     * 
     */
    private String ruleclass;

    /**
     * 
     */
    private String rule;

    /**
     * 
     */
    private String ruledesc;

    /**
     * 
     */
    private String appid;

    /**
     * 
     */
    private String trainingid;

    /**
     * 
     */
    private String userid;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    /**
     * 
     */
    public Object getId() {
        return id;
    }

    /**
     * 
     */
    public void setId(Object id) {
        this.id = id;
    }

    /**
     * 
     */
    public Object getRuleid() {
        return ruleid;
    }

    /**
     * 
     */
    public void setRuleid(Object ruleid) {
        this.ruleid = ruleid;
    }

    /**
     * 
     */
    public String getRulename() {
        return rulename;
    }

    /**
     * 
     */
    public void setRulename(String rulename) {
        this.rulename = rulename;
    }

    /**
     * 
     */
    public String getRuletype() {
        return ruletype;
    }

    /**
     * 
     */
    public void setRuletype(String ruletype) {
        this.ruletype = ruletype;
    }

    /**
     * 
     */
    public String getRuleclass() {
        return ruleclass;
    }

    /**
     * 
     */
    public void setRuleclass(String ruleclass) {
        this.ruleclass = ruleclass;
    }

    /**
     * 
     */
    public String getRule() {
        return rule;
    }

    /**
     * 
     */
    public void setRule(String rule) {
        this.rule = rule;
    }

    /**
     * 
     */
    public String getRuledesc() {
        return ruledesc;
    }

    /**
     * 
     */
    public void setRuledesc(String ruledesc) {
        this.ruledesc = ruledesc;
    }

    /**
     * 
     */
    public String getAppid() {
        return appid;
    }

    /**
     * 
     */
    public void setAppid(String appid) {
        this.appid = appid;
    }

    /**
     * 
     */
    public String getTrainingid() {
        return trainingid;
    }

    /**
     * 
     */
    public void setTrainingid(String trainingid) {
        this.trainingid = trainingid;
    }

    /**
     * 
     */
    public String getUserid() {
        return userid;
    }

    /**
     * 
     */
    public void setUserid(String userid) {
        this.userid = userid;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        CustomRules other = (CustomRules) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getRuleid() == null ? other.getRuleid() == null : this.getRuleid().equals(other.getRuleid()))
            && (this.getRulename() == null ? other.getRulename() == null : this.getRulename().equals(other.getRulename()))
            && (this.getRuletype() == null ? other.getRuletype() == null : this.getRuletype().equals(other.getRuletype()))
            && (this.getRuleclass() == null ? other.getRuleclass() == null : this.getRuleclass().equals(other.getRuleclass()))
            && (this.getRule() == null ? other.getRule() == null : this.getRule().equals(other.getRule()))
            && (this.getRuledesc() == null ? other.getRuledesc() == null : this.getRuledesc().equals(other.getRuledesc()))
            && (this.getAppid() == null ? other.getAppid() == null : this.getAppid().equals(other.getAppid()))
            && (this.getTrainingid() == null ? other.getTrainingid() == null : this.getTrainingid().equals(other.getTrainingid()))
            && (this.getUserid() == null ? other.getUserid() == null : this.getUserid().equals(other.getUserid()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getRuleid() == null) ? 0 : getRuleid().hashCode());
        result = prime * result + ((getRulename() == null) ? 0 : getRulename().hashCode());
        result = prime * result + ((getRuletype() == null) ? 0 : getRuletype().hashCode());
        result = prime * result + ((getRuleclass() == null) ? 0 : getRuleclass().hashCode());
        result = prime * result + ((getRule() == null) ? 0 : getRule().hashCode());
        result = prime * result + ((getRuledesc() == null) ? 0 : getRuledesc().hashCode());
        result = prime * result + ((getAppid() == null) ? 0 : getAppid().hashCode());
        result = prime * result + ((getTrainingid() == null) ? 0 : getTrainingid().hashCode());
        result = prime * result + ((getUserid() == null) ? 0 : getUserid().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", ruleid=").append(ruleid);
        sb.append(", rulename=").append(rulename);
        sb.append(", ruletype=").append(ruletype);
        sb.append(", ruleclass=").append(ruleclass);
        sb.append(", rule=").append(rule);
        sb.append(", ruledesc=").append(ruledesc);
        sb.append(", appid=").append(appid);
        sb.append(", trainingid=").append(trainingid);
        sb.append(", userid=").append(userid);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}